<?php use_stylesheet('main.css') ?>
<?php use_helper('Text') ?>


<h2>Mon panier</h2>

<table>
  <thead>
    <tr>
      <th>Produit</th>
      <th>Statut</th>
      <th>Ajouté le</th>
      <th>Acheter</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($shop_caddys as $shop_caddy): ?>
    <tr>
      <td><?php echo $shop_caddy->getShopProduct()->getTitle() ?></td>
      <td><?php if($shop_caddy->getStatut()== 1) { echo "en attente"; } ?></td>
      <td><?php echo $shop_caddy-> getDateTimeObject('created_at')->format('d/m/Y') ?></td>  
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('sfCaddy/historic') ?>">Mon historique</a>
